import { commonRequest } from '@/api/commonHttp';

// 商品基础 - 品类管理 - 品类管理 - 导出
export const exportCategoryListService = (data, loadingFn) => commonRequest({
  url: '/sysback/category/productplatformcategory/exportData',
  type: 'post',
  data,
  loadingFn,
  isExport: true,
  isFormData: true
});

// 商品基础 - 品类管理 - 品类管理 - 导出品类模板
export const exportTemplateService = (data, loadingFn) => commonRequest({
  url: '/sysback/category/productplatformcategory/exportCateTemplate',
  type: 'post',
  data,
  loadingFn,
  isExport: true
});

// 商品基础 - 品类管理 - 品类管理 - 列表查询
export const getPagerService = (data, loadingFn) => commonRequest({
  url: '/sysback/category/productplatformcategory/getPager',
  type: 'post',
  data,
  loadingFn
})

// 商品基础 - 品类管理 - 品类管理 - 查看历史明细
export const getHistoryService = (data, loadingFn) => commonRequest({
  url: '/sysback/category/productplatformcategoryaudit/getHistory',
  type: 'get',
  data,
  loadingFn
})
